<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/page/public/public-taglibs.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>Hehe综合管理系统-登录页面</title>
<%@ include file="/page/public/public-css.jsp"%>
</head>

<body class="login-layout blur-login">
	<div class="main-container">
		<div class="main-content">
			<div class="row">
				<div class="col-sm-10 col-sm-offset-1">
					<div class="login-container">
						<div class="center">
							<h1>
								<i class="ace-icon fa fa-leaf green"></i> <span class="red">Hehe</span>
								<span class="white" id="id-text2">综合管理系统</span>
							</h1>
							<h4 class="blue" id="id-company-text">&copy; COM.FAS</h4>
						</div>

						<div class="space-6"></div>

						<div class="position-relative">
							<div id="login-box"
								class="login-box visible widget-box no-border">
								<div class="widget-body">
									<div class="widget-main">
										<h4 class="header blue lighter bigger">
											<i class="ace-icon fa fa-coffee green"></i> 帐号登录
										</h4>

										<div class="space-6"></div>

										<form action="${ctx}/login" method="POST">
											<fieldset>
												<label class="block clearfix"> <span
													class="block input-icon input-icon-right"> <input
														type="text" class="form-control" name="username"
														placeholder="输入用户名/邮箱/手机号" /> <i
														class="ace-icon fa fa-user"></i>
												</span>
												</label> <label class="block clearfix"> <span
													class="block input-icon input-icon-right"> <input name="password"
														type="password" class="form-control" placeholder="输入密码" />
														<i class="ace-icon fa fa-lock"></i>
												</span>
												</label>
												
												 <div class="form-group" id="addCode">
            <input class="form-control imgCode" placeholder="请输入验证码" name="captcha" style="width:160px;display:inline-block">
            <img id="imgCode" height="32px" title="点击刷新" src="${ctx}/login/captcha" onclick="javascript:this.src='${ctx}/login/captcha?' + new Date().getTime();" >
        	<p class="text-danger">${imgCodeMsg}</p>
        </div>

												<div class="space"></div>

												<div class="clearfix">
													<label class="inline"> <input type="checkbox"
														name="rememberMe" value="true" class="ace" /> <span
														class="lbl"> 下次自动登录</span>
													</label> <a href="#" data-target="#forgot-box"
														class="pull-right forgot-password-link"> <i
														class="ace-icon fa fa-arrow-left"></i>忘记密码?
													</a>

												</div>

												<div class="space-4"></div>
												${error}
												<div class="clearfix">
													<button type="submit"
														class="width-100 pull-right btn btn-sm btn-primary no-border">
														<span class="bigger-150">登&nbsp;&nbsp;录</span>
													</button>
												</div>
											</fieldset>
											<div class="space-6"></div>
										</form>

									</div>


								</div>
								<!-- /.widget-main -->


							</div>
							<!-- /.widget-body -->
						</div>
						<!-- /.login-box -->

						<div id="forgot-box" class="forgot-box widget-box no-border">
							<div class="widget-body">
								<div class="widget-main">
									<h4 class="header red lighter bigger">
										<i class="ace-icon fa fa-key"></i> Retrieve Password
									</h4>

									<div class="space-6"></div>
									<p>Enter your email and to receive instructions</p>

									<form>
										<fieldset>
											<label class="block clearfix"> <span
												class="block input-icon input-icon-right"> <input
													type="email" class="form-control" placeholder="Email" /> <i
													class="ace-icon fa fa-envelope"></i>
											</span>
											</label>

											<div class="clearfix">
												<button type="button"
													class="width-35 pull-right btn btn-sm btn-danger">
													<i class="ace-icon fa fa-lightbulb-o"></i> <span
														class="bigger-110">Send Me!</span>
												</button>
											</div>
										</fieldset>
									</form>
								</div>
								<!-- /.widget-main -->

								<div class="toolbar center">
									<a href="#" data-target="#login-box" class="back-to-login-link">
										Back to login <i class="ace-icon fa fa-arrow-right"></i>
									</a>
								</div>
							</div>
							<!-- /.widget-body -->
						</div>
						<!-- /.forgot-box -->


					</div>
					<!-- /.position-relative -->

					<div class="navbar-fixed-top align-right">
						<br /> &nbsp; <a id="btn-login-dark" href="#">暗色</a> &nbsp; <span
							class="blue">/</span> &nbsp; <a id="btn-login-blur" href="#">蓝色</a>
						&nbsp; <span class="blue">/</span> &nbsp; <a id="btn-login-light"
							href="#">亮色</a> &nbsp; &nbsp; &nbsp;
					</div>
				</div>
			</div>
			<!-- /.col -->
		</div>
		<!-- /.row -->
	</div>
	<!-- /.main-content -->
	</div>
	<!-- /.main-container -->

	<!-- basic scripts -->

	<!--[if !IE]> -->
	<script type="text/javascript">
		window.jQuery
				|| document.write("<script src='../assets/js/jquery.js'>"
						+ "<"+"/script>");
	</script>

	<!-- <![endif]-->

	<!--[if IE]>
		<script type="text/javascript">
		 window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/script>");
		</script>
	<![endif]-->
	
	<script type="text/javascript">
		if ('ontouchstart' in document.documentElement)
			document
					.write("<script src='../assets/js/jquery.mobile.custom.js'>"
							+ "<"+"/script>");
	</script>

	<!-- inline scripts related to this page -->
	<script type="text/javascript">
		jQuery(function($) {
			$(document).on('click', '.toolbar a[data-target]', function(e) {
				e.preventDefault();
				var target = $(this).data('target');
				$('.widget-box.visible').removeClass('visible');//hide others
				$(target).addClass('visible');//show target
			});
		});

		//you don't need this, just used for changing background
		jQuery(function($) {
			$('#btn-login-dark').on('click', function(e) {
				$('body').attr('class', 'login-layout');
				$('#id-text2').attr('class', 'white');
				$('#id-company-text').attr('class', 'blue');

				e.preventDefault();
			});
			$('#btn-login-light').on('click', function(e) {
				$('body').attr('class', 'login-layout light-login');
				$('#id-text2').attr('class', 'grey');
				$('#id-company-text').attr('class', 'blue');

				e.preventDefault();
			});
			$('#btn-login-blur').on('click', function(e) {
				$('body').attr('class', 'login-layout blur-login');
				$('#id-text2').attr('class', 'white');
				$('#id-company-text').attr('class', 'light-blue');

				e.preventDefault();
			});

		});
	</script>
</body>
</html>
